home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 2.9 KB | 154 lines | [TEXT/MPS ] |
- ;
- ; File: GXMessages.a
- ;
- ; Contains: This file contains all of the public data structures,
- ;
- ; Version: Technology: Quickdraw GX 1.1
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__GXMESSAGES__') = 'UNDEFINED' THEN
- __GXMESSAGES__ SET 1
-
-
- IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
- include 'ConditionalMacros.a'
- ENDIF
-
- IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
- include 'MixedMode.a'
- ENDIF
- ; include 'Types.a' ;
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ;
- ;
- ; >>>>>> CONSTANTS <<<<<<
- ;
- ;
- ; Message Manager Trap
-
- messageManagerTrap EQU $ABFB
-
- ; Message Manager Gestalt Selector
- gestaltMessageMgrVersion EQU 'mess'
-
- ; Message Manager Error Result Codes
- messageStopLoopingErr EQU -5775
- cantDeleteRunningHandlerErr EQU -5776
- noMessageTableErr EQU -5777
- dupSignatureErr EQU -5778
- messageNotReceivedErr EQU -5799
-
- ; typedef MessageGlobalsInitProcPtr MessageGlobalsInitProc
- ;
- ;
- ; PUBLIC INTERFACES
- ;
- ; Message Handler API Routines
- ;
- ;
- ; long CountMessageHandlerInstances(void)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _CountMessageHandlerInstances
- moveq #40,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION CountMessageHandlerInstances
- ENDIF
-
- ;
- ; void *GetMessageHandlerClassContext(void)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _GetMessageHandlerClassContext
- moveq #41,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION GetMessageHandlerClassContext
- ENDIF
-
- ;
- ; void *SetMessageHandlerClassContext(void *anyValue)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _SetMessageHandlerClassContext
- moveq #42,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION SetMessageHandlerClassContext
- ENDIF
-
- ;
- ; void *GetMessageHandlerInstanceContext(void)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _GetMessageHandlerInstanceContext
- moveq #43,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION GetMessageHandlerInstanceContext
- ENDIF
-
- ;
- ; void *SetMessageHandlerInstanceContext(void *anyValue)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _SetMessageHandlerInstanceContext
- moveq #44,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION SetMessageHandlerInstanceContext
- ENDIF
-
- ;
- ; OSErr NewMessageGlobals(long messageGlobalsSize, MessageGlobalsInitUPP initProc)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _NewMessageGlobals
- moveq #45,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION NewMessageGlobals
- ENDIF
-
- ;
- ; void DisposeMessageGlobals(void)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _DisposeMessageGlobals
- moveq #46,d0
- dc.w $ABFB
- EndM
- ELSE
- IMPORT_CFM_FUNCTION DisposeMessageGlobals
- ENDIF
-
- ENDIF ; __GXMESSAGES__
-